"""Freshman_Manager URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from web import views

urlpatterns = [
    path('login/',views.login),
    path('home/',views.home),

    #管理员
    path('regiest_admin/',views.regiest_admin),
    path('delete_admin/',views.delete_admin),
    path('edit_admin/',views.edit_admin),
    path('home_admin/',views.home_admin),

    # 学生
    path('regiest_stu/', views.regiest_stu),
    path('delete_stu/', views.delete_stu),
    path('edit_stu/', views.edit_stu),
    path('home_stu/', views.home_stu),

    #部门
    path('regiest_depart/',views.regiest_depart),
    path('delete_depart/',views.delete_depart),
    path('edit_depart/',views.edit_depart),
    path('home_depart/',views.home_depart),

]
